package
{
	import flash.display.MovieClip;
	//import flash.display.Sprite;
	
	public class ElevatorScheduling extends MovieClip
	{
		//an empty movieClip for display
		private var container:MovieClip;
		
		//draw something
		private var buildingTable:BuildingTable;
		
		//objects
		private var found:Found;
		private var elevators:Array=new Array();
		private var canvasOuter:CanvasOuter;
		//private var canvasInners:Array=new Array();
		
		//constructer for the main class
		public function ElevatorScheduling()
		{
			//init container
			container=new MovieClip();
			this.addChild(container);
			
			
			
			
			found=new Found();
			if(found==null)trace("no found!");
			
			//init CanvasOuter
			canvasOuter=new CanvasOuter(found,container,60,500);
			//init elevators
			for(var i:int=0;i<5;i++)
			{
				elevators[i]=new Elevator(found,canvasOuter,container,160+i*120,500,i);
			}
			
			found.setElevators(elevators);
			
			
			//init the building table
			buildingTable=new BuildingTable(container,100,120);
		}
		
		private function reSet()
		{
			//reset elevators
		}
	}
}